import requests

url = 'https://www.twitter.com'

response = requests.get(url,timeout=3)
print(response.content)